package bit;

public class demo2 {
    public static void main(String[] args) {

        demo1 student = new demo1(15,"张三");
        demo1.classroom = "16班";
        System.out.println(demo1.classroom);

        System.out.println(student);           //自动调用toSpring

        student.setname("李四");
        System.out.println(student.getname()); //通过调用来访问封装的成员变量


       demo1.Function2();

    }
}
